<script type="text/javascript">

$().ready(function() {

	// validate signup form on keyup and submit
	$("#contact-form").validate({
		rules: {
			name: {
				required: true,
				minlength: 2
			},
			pwd: {
				required: true,
				minlength: 5
			},
			email: {
				required: true,
				email: true
			},
			details: {
				required: true
			}
		},
		messages: {
			name: {
				required: "Please enter a username",
				minlength: "Your username must consist of at least 2 characters"
			},
			password: {
				required: "Please provide a password",
				minlength: "Your password must be at least 5 characters long"
			},
			email: "Please enter a valid email address",
			details: "Please enter details"
			
		}
	});
	
});
</script>



<style>
h1{
	text-align: left;
	margin-top:20px;
	padding-left:20px;
}
#contact-detail{
	padding:10px;
}
#contact-form{
	padding:20px;
}
</style>
<h1> Contact to Us </h1>
<div id="contact-detail">
<p>
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
</p>
</div>
<form id="contact-form" action="<?php echo ABSPATH ?>/resource/phpMailer/send.php" method="post">
			<h4><label for="name">Your Name</label></h4> 
			<input id="name" type="text" name="name" size="20" minlength="2" /> 
		
			<h4><label for="email">Your Email</label></h4>
			<input id="email" type="text" name="email" size="20" />
			
			<h4><label for="pwd">Password</label></h4>
			<input type="password" id="pwd" name="pwd" />		
			
			<h4><label for="details">Details</label></h4> 
			<textarea id="details" name="details" rows="4" cols="60"> </textarea> <br />
		
			<input type="submit" value="Send" />
			<input type="reset" value="Reset" />
</form>

